package com.example.last.dao;

import com.example.last.entity.Questions;
import com.example.last.entity.Params;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface QuestionsDao {
    List<Questions> findBySearch(@Param("params") Params params);

    void add(Questions questions);

    void update(Questions questions);

    void delete(Integer id);

    List<Questions> findAll();
    List<Questions> findByTypeId(Integer typeId);

    Questions selectById(Integer index);
}
